﻿using Bmz.Studio.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bmz.Studio.EntityFramework.Mapping
{
    public class NavigationMap:StudioEntityTypeConfiguration<Navigation>
    {
        public NavigationMap()
        {
            this.HasKey(p => p.Id);
            this.Property(p => p.Code).HasMaxLength(10).IsRequired();
            this.Property(p => p.Name).HasMaxLength(10).IsRequired();
            this.Property(p => p.Description).HasMaxLength(50).IsRequired();
            this.Property(p => p.Order).IsRequired();
        }
    }
}
